import Vue from 'vue';
import App from './App.vue';
import router from './router/index';
import store from './store/index';
import './components/index';
import './assets/style/index.less';
import utils from './assets/js/utils';

console.log(utils.urlData());
const urlData = utils.urlData();

store.commit('setUrlData', urlData);

Vue.config.productionTip = false;


router.beforeEach((to, from, next) => {
  if (to.name !== 'home') {
    console.log(5);
  }
  next();
});

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app');
